<?php
/**
 * 控制面包管理
 *
 * @author     chenfenghua<843958575@qq.com>
 * @copyright  Copyright 2008-2013 mall.yiitian.com
 * @version    1.0
 */
class DefaultController extends BaseController
{
    /**
     * 控制面包页
     */
    public function actionIndex()
	{
        $user_id = Yii::app()->session['_admini']['user_id'];
        $user = Desktopusers::model()->find("user_id = $user_id");
        if ($user['name'] != 'admin' && $user['password'] == '14e1b600b1fd579f47433b88e8d85291') $this->redirect('?r=desktop/user/reset');
		$this->render('index');
	}

    /**
     * 权限不足提示页
     */
    public function actionPermission()
    {
        $redirect = $_GET['redirect'];
        $this->render('permission',array('redirect'=>$redirect));
    }
}